package cloud.xlh.digital_power_pay.service.order.service;

import cloud.xlh.digital_power_pay.domian.order.OrderSaveDomain;
import cloud.xlh.digital_power_pay.infrastructure.order.entity.OrderEntity;
import cloud.xlh.digital_power_pay.service.order.adapter.OrderServiceAdapter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/8/12 18:53
 * @ Description:
 */
@Service
public class OrderService {

    @Resource
    private OrderServiceAdapter orderServiceAdapter;


    public String genOrder(OrderSaveDomain orderSaveDomain) {
        OrderEntity orderEntity = orderServiceAdapter.convertOrderEntity(orderSaveDomain);
        try {
            Thread.sleep(Integer.MAX_VALUE);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "000000";
    }
}
